﻿
/*----------------------------------------------------------------
 * 创建时间：2023/8/9 16:14:38
 * 作  者：wenlli 
 * 项  目：Minotaur.App.Domains.ViewModel.Menu 
 * 描  述：菜单信息ViewModel
 *
 * ----------------------------------------------------------------
 * 修改人：
 * 时  间：
 * 修改说明：
 * 
 *----------------------------------------------------------------*/


using MaterialDesignThemes.Wpf;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minotaur.App.Domains.ViewModel.Menu
{
    /// <summary>
    /// 菜单信息ViewModel
    /// </summary>
    public class MenuInfoViewModel : BindableBase
    {
        public virtual string? ParentCode { get; set; }
        /// <summary>
        /// 主键ID
        /// </summary> 
        public virtual long AutoId { get; set; }

        private string _Name;
        /// <summary>
        /// 菜单名称
        /// </summary>
        public virtual string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetProperty(ref _Name, value);
            }
        }

        /// <summary>
        /// 英文名
        /// </summary>
        private string _EnName;
        /// <summary>
        /// 英文名
        /// </summary>
        public virtual string EnName
        {
            get
            {
                return _EnName;
            }
            set
            {
                SetProperty(ref _EnName, value);
            }
        }

        /// <summary>
        /// 站点地址
        /// </summary>
        private string _Address;
        /// <summary>
        /// 站点地址
        /// </summary>
        public virtual string Address
        {
            get
            {
                return _Address;
            }
            set
            {
                SetProperty(ref _Address, value);
            }
        }

        /// <summary>
        /// 编码
        /// </summary>
        private string _Code;
        /// <summary>
        /// 编码
        /// </summary>
        public virtual string Code
        {
            get
            {
                return _Code;
            }
            set
            {
                SetProperty(ref _Code, value);
            }
        }
        public PackIconKindViewModel PackIconKind
        {
            get
            {
                return _PackIconKind;
            }
            set
            {
                SetProperty(ref _PackIconKind, value);
            }
        }
        private PackIconKindViewModel _PackIconKind;
    }

    /// <summary>
    /// 图标类
    /// </summary>
    public class PackIconKindViewModel : BindableBase
    {
        private string _Name;

        /// <summary>
        /// 图标名称
        /// </summary>
        public virtual string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetProperty(ref _Name, value);
            }
        }
        private PackIconKind _IconKind;

        /// <summary>
        /// 图标名称
        /// </summary>
        public virtual PackIconKind IconKind
        {
            get
            {
                return _IconKind;
            }
            set
            {
                SetProperty(ref _IconKind, value);
            }
        }

    }
}
